        <!DOCTYPE html>
        <html>
        <head>
                <meta charset="utf-8">
        <title>ContactConstraintPoint class / box2d_console Library / Dart Documentation</title>
        <link rel="stylesheet" type="text/css"
            href="../styles.css">
        <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800" rel="stylesheet" type="text/css">
        <link rel="shortcut icon" href="../favicon.ico">
        
        </head>
        <body data-library="box2d_console" data-type="ContactConstraintPoint">
        <div class="page">
        <div class="header">
          <a href="../index.html"><div class="logo"></div></a>
          <a href="../index.html">Dart Documentation</a>
         &rsaquo; <a href="../box2d_console.html">box2d_console</a> &rsaquo; <a href="../box2d_console/ContactConstraintPoint.html">ContactConstraintPoint</a>        <div id="search-box">
          <input type="search" name="q" id="q" autocomplete="off"
              class="search-input" placeholder="Search API">
        </div>
        
      </div>
      <div class="drop-down" id="drop-down"></div>
      
        <div class="nav">
        
</div>
<div class="content">
        <h2><strong>ContactConstraintPoint</strong>
          class
        </h2>
        
<button id="show-inherited" class="show-inherited">Hide inherited</button>
<div class="doc">
<pre class="source">
class ContactConstraintPoint {
  final Vector localPoint;
  //TODO(gregbglw): Find out what rA and rB mean and change the names.
  final Vector rA;
  final Vector rB;

  num normalImpulse;
  num tangentImpulse;
  num normalMass;
  num tangentMass;
  num velocityBias;

  /** Constructs a new ContactConstraintPoint. */
  ContactConstraintPoint()
    : localPoint = new Vector(),
    rA = new Vector(),
    rB = new Vector(),
    normalImpulse = 0,
    tangentImpulse = 0,
    normalMass = 0,
    tangentMass = 0,
    velocityBias = 0 {}

  /** Sets this point equal to the given point. */
  void setFrom(ContactConstraintPoint cp) {
    localPoint.setFrom(cp.localPoint);
    rA.setFrom(cp.rA);
    rB.setFrom(cp.rB);
    normalImpulse = cp.normalImpulse;
    tangentImpulse = cp.tangentImpulse;
    normalMass = cp.normalMass;
    tangentMass = cp.tangentMass;
    velocityBias = cp.velocityBias;
  }

  String toString() {
    return "normal impulse: $normalImpulse, tangentImpulse: $tangentImpulse"
        ", normalMass: $normalMass, tangentMass: $tangentMass"
        ", velocityBias: $velocityBias, localPoint: $localPoint"
        ", rA: $rA, rB: $rB";
  }
}
</pre>
</div>
<div>
<h3>Constructors</h3>
<div class="method"><h4 id="ContactConstraintPoint">
<button class="show-code">Code</button>
new <strong>ContactConstraintPoint</strong>() <a class="anchor-link" href="#ContactConstraintPoint"
              title="Permalink to ContactConstraintPoint.ContactConstraintPoint">#</a></h4>
<div class="doc">
<p>Constructs a new ContactConstraintPoint.</p>
<pre class="source">
ContactConstraintPoint()
  : localPoint = new Vector(),
  rA = new Vector(),
  rB = new Vector(),
  normalImpulse = 0,
  tangentImpulse = 0,
  normalMass = 0,
  tangentMass = 0,
  velocityBias = 0 {}
</pre>
</div>
</div>
</div>
<div>
<h3>Properties</h3>
<div class="field"><h4 id="localPoint">
<button class="show-code">Code</button>
final <a href="../box2d_console/Vector.html">Vector</a>         <strong>localPoint</strong> <a class="anchor-link"
            href="#localPoint"
            title="Permalink to ContactConstraintPoint.localPoint">#</a>
        </h4>
        <div class="doc">
<pre class="source">
final Vector localPoint;
</pre>
</div>
</div>
<div class="field"><h4 id="normalImpulse">
<button class="show-code">Code</button>
num         <strong>normalImpulse</strong> <a class="anchor-link"
            href="#normalImpulse"
            title="Permalink to ContactConstraintPoint.normalImpulse">#</a>
        </h4>
        <div class="doc">
<pre class="source">
num normalImpulse;
</pre>
</div>
</div>
<div class="field"><h4 id="normalMass">
<button class="show-code">Code</button>
num         <strong>normalMass</strong> <a class="anchor-link"
            href="#normalMass"
            title="Permalink to ContactConstraintPoint.normalMass">#</a>
        </h4>
        <div class="doc">
<pre class="source">
num normalMass;
</pre>
</div>
</div>
<div class="field"><h4 id="rA">
<button class="show-code">Code</button>
final <a href="../box2d_console/Vector.html">Vector</a>         <strong>rA</strong> <a class="anchor-link"
            href="#rA"
            title="Permalink to ContactConstraintPoint.rA">#</a>
        </h4>
        <div class="doc">
<pre class="source">
final Vector rA;
</pre>
</div>
</div>
<div class="field"><h4 id="rB">
<button class="show-code">Code</button>
final <a href="../box2d_console/Vector.html">Vector</a>         <strong>rB</strong> <a class="anchor-link"
            href="#rB"
            title="Permalink to ContactConstraintPoint.rB">#</a>
        </h4>
        <div class="doc">
<pre class="source">
final Vector rB;
</pre>
</div>
</div>
<div class="field inherited"><h4 id="runtimeType">
<button class="show-code">Code</button>
final Type         <strong>runtimeType</strong> <a class="anchor-link"
            href="#runtimeType"
            title="Permalink to ContactConstraintPoint.runtimeType">#</a>
        </h4>
        <div class="inherited-from">inherited from Object </div><div class="doc">
<p>A representation of the runtime type of the object.</p>
<pre class="source">
external Type get runtimeType;
</pre>
</div>
</div>
<div class="field"><h4 id="tangentImpulse">
<button class="show-code">Code</button>
num         <strong>tangentImpulse</strong> <a class="anchor-link"
            href="#tangentImpulse"
            title="Permalink to ContactConstraintPoint.tangentImpulse">#</a>
        </h4>
        <div class="doc">
<pre class="source">
num tangentImpulse;
</pre>
</div>
</div>
<div class="field"><h4 id="tangentMass">
<button class="show-code">Code</button>
num         <strong>tangentMass</strong> <a class="anchor-link"
            href="#tangentMass"
            title="Permalink to ContactConstraintPoint.tangentMass">#</a>
        </h4>
        <div class="doc">
<pre class="source">
num tangentMass;
</pre>
</div>
</div>
<div class="field"><h4 id="velocityBias">
<button class="show-code">Code</button>
num         <strong>velocityBias</strong> <a class="anchor-link"
            href="#velocityBias"
            title="Permalink to ContactConstraintPoint.velocityBias">#</a>
        </h4>
        <div class="doc">
<pre class="source">
num velocityBias;
</pre>
</div>
</div>
</div>
<div>
<h3>Operators</h3>
<div class="method inherited"><h4 id="==">
<button class="show-code">Code</button>
bool <strong>operator ==</strong>(other) <a class="anchor-link" href="#=="
              title="Permalink to ContactConstraintPoint.operator ==">#</a></h4>
<div class="inherited-from">inherited from Object </div><div class="doc">
<p>The equality operator.</p>
<p>The default behavior for all <code>Object</code>s is to return true if and
only if <code>this</code> and 
<span class="param">other</span> are the same object.</p>
<p>If a subclass overrides the equality operator it should override
the <code>hashCode</code> method as well to maintain consistency.</p>
<pre class="source">
bool operator ==(other) =&gt; identical(this, other);
</pre>
</div>
</div>
</div>
<div>
<h3>Methods</h3>
<div class="method"><h4 id="ContactConstraintPoint">
<button class="show-code">Code</button>
new <strong>ContactConstraintPoint</strong>() <a class="anchor-link" href="#ContactConstraintPoint"
              title="Permalink to ContactConstraintPoint.ContactConstraintPoint">#</a></h4>
<div class="doc">
<p>Constructs a new ContactConstraintPoint.</p>
<pre class="source">
ContactConstraintPoint()
  : localPoint = new Vector(),
  rA = new Vector(),
  rB = new Vector(),
  normalImpulse = 0,
  tangentImpulse = 0,
  normalMass = 0,
  tangentMass = 0,
  velocityBias = 0 {}
</pre>
</div>
</div>
<div class="method inherited"><h4 id="hashCode">
<button class="show-code">Code</button>
int <strong>hashCode</strong>() <a class="anchor-link" href="#hashCode"
              title="Permalink to ContactConstraintPoint.hashCode">#</a></h4>
<div class="inherited-from">inherited from Object </div><div class="doc">
<p>Get a hash code for this object.</p>
<p>All objects have hash codes. Hash codes are guaranteed to be the
same for objects that are equal when compared using the equality
operator <code>==</code>. Other than that there are no guarantees about
the hash codes. They will not be consistent between runs and
there are no distribution guarantees.</p>
<p>If a subclass overrides <code>hashCode</code> it should override the
equality operator as well to maintain consistency.</p>
<pre class="source">
external int hashCode();
</pre>
</div>
</div>
<div class="method inherited"><h4 id="noSuchMethod">
<button class="show-code">Code</button>
<strong>noSuchMethod</strong>(String name, List args) <a class="anchor-link" href="#noSuchMethod"
              title="Permalink to ContactConstraintPoint.noSuchMethod">#</a></h4>
<div class="inherited-from">inherited from Object </div><div class="doc">
<p><code>noSuchMethod</code> is invoked when users invoke a non-existant method
on an object. The name of the method and the arguments of the
invocation are passed to <code>noSuchMethod</code>. If <code>noSuchMethod</code>
returns a value, that value becomes the result of the original
invocation.</p>
<p>The default behavior of <code>noSuchMethod</code> is to throw a
<code>noSuchMethodError</code>.</p>
<pre class="source">
external Dynamic noSuchMethod(String name, List args);
</pre>
</div>
</div>
<div class="method inherited"><h4 id="Object">
<button class="show-code">Code</button>
const <strong>Object</strong>() <a class="anchor-link" href="#Object"
              title="Permalink to ContactConstraintPoint.Object">#</a></h4>
<div class="inherited-from">inherited from Object </div><div class="doc">
<p>Creates a new <code>Object</code> instance.</p>
<p><code>Object</code> instances have no meaningful state, and are only useful
through their identity. An <code>Object</code> instance is equal to itself
only.</p>
<pre class="source">
const Object();
</pre>
</div>
</div>
<div class="method"><h4 id="setFrom">
<button class="show-code">Code</button>
void <strong>setFrom</strong>(<a href="../box2d_console/ContactConstraintPoint.html">ContactConstraintPoint</a> cp) <a class="anchor-link" href="#setFrom"
              title="Permalink to ContactConstraintPoint.setFrom">#</a></h4>
<div class="doc">
<p>Sets this point equal to the given point.</p>
<pre class="source">
void setFrom(ContactConstraintPoint cp) {
  localPoint.setFrom(cp.localPoint);
  rA.setFrom(cp.rA);
  rB.setFrom(cp.rB);
  normalImpulse = cp.normalImpulse;
  tangentImpulse = cp.tangentImpulse;
  normalMass = cp.normalMass;
  tangentMass = cp.tangentMass;
  velocityBias = cp.velocityBias;
}
</pre>
</div>
</div>
<div class="method"><h4 id="toString">
<button class="show-code">Code</button>
String <strong>toString</strong>() <a class="anchor-link" href="#toString"
              title="Permalink to ContactConstraintPoint.toString">#</a></h4>
<div class="doc">
<div class="inherited">
<p>Returns a string representation of this object.</p>
<div class="docs-inherited-from">docs inherited from Object </div></div>
<pre class="source">
String toString() {
  return "normal impulse: $normalImpulse, tangentImpulse: $tangentImpulse"
      ", normalMass: $normalMass, tangentMass: $tangentMass"
      ", velocityBias: $velocityBias, localPoint: $localPoint"
      ", rA: $rA, rB: $rB";
}
</pre>
</div>
</div>
</div>
        </div>
        <div class="clear"></div>
        </div>
        
        <div class="footer">
          
        </div>
        <script async src="../client-live-nav.js"></script>
        </body></html>
        
